﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="Meirimoney.Exchange.Website.Exchange.Detail" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../Content/default.css" rel="stylesheet" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <table id="details" cellpadding="0" border="0" cellspacing="1px">
            <tbody>
                <tr>
                    <th>相关项</th>
                    <th>相关值</th>
                </tr>
                <tr>
                    <td>兑换商品</td>
                    <td><%=this.Commodity.Name %></td>
                </tr>

                <%if (this.Commodity.Category == 1)
                  {%>
                <tr>
                    <td>兑换类别</td>
                    <td>话费充值</td>
                </tr>
                <tr>
                    <td>手机号码</td>
                    <td><%=this.Order.ShipAddress%></td>
                </tr>
                <% }
                  else if (this.Commodity.Category == 2)
                  {%>
                <tr>
                    <td>兑换类别</td>
                    <td>支付宝提现</td>
                </tr>
                <tr>
                    <td>真实姓名</td>
                    <td><%=AlipayAccount( this.Order.ShipAddress)[1]%></td>
                </tr>
                <tr>
                    <td>支付宝账号</td>
                    <td><%=AlipayAccount( this.Order.ShipAddress)[0]%></td>
                </tr>
                <%}%>
                <tr>
                    <td>商品单价</td>
                    <td><%=this.Commodity.Price %></td>
                </tr>
                <tr>
                    <td>所需积分</td>
                    <td><%=this.Commodity.Integral %></td>
                </tr>
                <tr>
                    <td>扣除用户积分</td>
                    <td><%=this.Order.IntegralAmount%></td>
                </tr>
                <tr>
                    <td>设备编号</td>
                    <td><%=this.Order.DeviceId%></td>
                </tr>
                <tr>
                    <td>订单提交时间</td>
                    <td><%=this.Order.AddTime%></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td>
                        <input type="submit" value="已完成兑换"  onclick="return confirm('确认已经完成兑换？');" />
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
